package router

import (
	"cargo-link/handler"
	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
	r := gin.Default()
	r.POST("/Login", handler.Login)
	r.POST("/RoleNode", handler.RoleNode)
	r.GET("/UserRole", handler.UserRole)
	r.GET("/RoleNodeList", handler.RoleNodeList)
	r.POST("/CarAdd", handler.CarAdd)
	r.POST("/LinkAdd", handler.LinkAdd)
	return r
}
